package com.lazybones.base.engineer.entity.base;

import com.mybatisflex.annotation.Column;

import java.io.Serializable;
import java.util.Date;


public class BaseEntity implements Serializable {
    @Column(value = "create_time",onUpdateValue = "now()", onInsertValue = "now()")
    private Date createTime;
    @Column(value = "update_time",onUpdateValue = "now()", onInsertValue = "now()")
    private Date updateTime;
    @Column(value = "create_user")
    private String createUser;
    @Column(value = "update_user")
    private String updateUser;
    @Column(value = "create_user_id")
    private String creteUserId;
    @Column(value = "update_user_id")
    private String updateUserId;

    public BaseEntity() {
    }

    public BaseEntity(Date createTime, Date updateTime, String createUser, String updateUser, String creteUserId, String updateUserId) {
        this.createTime = createTime;
        this.updateTime = updateTime;
        this.createUser = createUser;
        this.updateUser = updateUser;
        this.creteUserId = creteUserId;
        this.updateUserId = updateUserId;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public String getCreateUser() {
        return createUser;
    }

    public void setCreateUser(String createUser) {
        this.createUser = createUser;
    }

    public String getUpdateUser() {
        return updateUser;
    }

    public void setUpdateUser(String updateUser) {
        this.updateUser = updateUser;
    }

    public String getCreteUserId() {
        return creteUserId;
    }

    public void setCreteUserId(String creteUserId) {
        this.creteUserId = creteUserId;
    }

    public String getUpdateUserId() {
        return updateUserId;
    }

    public void setUpdateUserId(String updateUserId) {
        this.updateUserId = updateUserId;
    }

    @Override
    public String toString() {
        return "BaseEntity{" +
                "createTime=" + createTime +
                ", updateTime=" + updateTime +
                ", createUser='" + createUser + '\'' +
                ", updateUser='" + updateUser + '\'' +
                ", creteUserId='" + creteUserId + '\'' +
                ", updateUserId='" + updateUserId + '\'' +
                '}';
    }
}
